package com.teame.readbaby.po;

import java.io.Serializable;



public class Product implements Serializable{

	private String color;//商品的颜色
	private String id;//商品的id号
	private boolean isgift;//是否是赠送的产品
	private String name;//商品的名称
	private String number;//购买商品的数量
	private String pic;//产品的图片
	private String price;//购买产品价格单价
	private String prodNum;//购买该产品的数量
	private String size;//商品的尺寸
	private String subtotal;
	private String uplimit;//购买的上限
	private String totalPrice;//同类商品的总价格
	
	
	public String getTotalPrice() {
		return totalPrice=String.valueOf(Integer.parseInt(number)*Float.parseFloat(price));
	}
	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public boolean isIsgift() {
		return isgift;
	}
	public void setIsgift(boolean isgift) {
		this.isgift = isgift;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getSize() {
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	public String getUplimit() {
		return uplimit;
	}
	public void setUplimit(String uplimit) {
		this.uplimit = uplimit;
	}
	public String getProdNum() {
		return prodNum;
	}
	public void setProdNum(String prodNum) {
		this.prodNum = prodNum;
	}
	public String getSubtotal() {
		return subtotal;
	}
	public void setSubtotal(String subtotal) {
		this.subtotal = subtotal;
	}
	@Override
	public String toString() {
		return "Product [color=" + color + ", id=" + id + ", isgift=" + isgift
				+ ", name=" + name + ", number=" + number + ", pic=" + pic
				+ ", price=" + price + ", prodNum=" + prodNum + ", size="
				+ size + ", subtotal=" + subtotal + ", uplimit=" + uplimit
				+ ", totalPrice=" + totalPrice + ", getTotalPrice()="
				+ getTotalPrice() + ", getColor()=" + getColor() + ", getId()="
				+ getId() + ", isIsgift()=" + isIsgift() + ", getName()="
				+ getName() + ", getNumber()=" + getNumber() + ", getPic()="
				+ getPic() + ", getPrice()=" + getPrice() + ", getSize()="
				+ getSize() + ", getUplimit()=" + getUplimit()
				+ ", getProdNum()=" + getProdNum() + ", getSubtotal()="
				+ getSubtotal() + ", getClass()=" + getClass()
				+ ", hashCode()=" + hashCode() + ", toString()="
				+ super.toString() + "]";
	}
	
	
	
	
	
}
